package com.atguigu.yygh.hosp.dao;

import com.atguigu.yygh.model.hosp.Department;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

/*==================================
      时 间:   2023-03-20
      讲 师:   刘  辉
      描 述:   尚硅谷教学团队
===================================*/
public interface DepartmentRepository  extends MongoRepository<Department,String> {
    Department findByHoscodeAndDepcode(String hoscode, String depcode);

    List<Department> findByHoscode(String hoscode);
}
